feat(search): sortProperties on searchRequest - #61
Merged
Merged
Conversation
dschmidt
force-pushed
the
feat/search-sort-properties
branch
from
September 1, 2026 10:13
c400b39 to
a936b79
Compare
dschmidt
force-pushed
the
feat/search-sort-properties
branch
from
September 7, 2026 21:36
a936b79 to
13117f3
Compare
dschmidt
marked this pull request as ready for review
September 7, 2026 23:55
dschmidt
requested review from
butonic,
dragotin,
fschade,
kulmann,
micbar and
rhafer
as code owners
September 7, 2026 23:55
dschmidt
force-pushed
the
feat/search-sort-properties
branch
from
October 1, 2026 10:58
13117f3 to
6b2bad5
Compare
dschmidt
force-pushed
the
feat/search-sort-properties
branch
2 times, most recently
from
October 1, 2026 19:17
34213f3 to
3992a13
Compare
Ordered list of {name, isDescending} sort keys on searchRequest,
following the MS Graph sortProperty resource type including its cap of
5 sort properties. Ties are broken by relevance, results missing the
sort property are placed last. Sortable are the scalar search fields of
the hit's resource; multivalued and unknown properties are rejected
with invalidRequest.
butonic
approved these changes
Oct 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
sortProperties/sortPropertytosearchRequest, following the MS Graph sortProperty resource type: an ordered list of{name, isDescending}entries (at most 5, as in MS Graph), with results sorted by relevance when absent. Ties are broken by relevance and results missing the sort property are placed last.Sortable are the scalar search fields of the search hit's resource (
name,size,lastModifiedDateTime,mimeTypeand scalar facet fields such asphoto.takenDateTimeoraudio.artist). Multivalued and unknown properties are rejected withinvalidRequest.Implementation: opencloud-eu/opencloud#3298 (draft).